package cn.wolfcode.car.business.domain;

import cn.wolfcode.car.base.domain.Dept;
import cn.wolfcode.car.base.domain.Post;
import cn.wolfcode.car.base.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter
@Setter
public class CustomerLinkmen {
    /** 客户联系人id*/
    private Long id;
    /** 客户id*/
    private Long customerId;
    /** 联系人姓名*/
    private String linkman;
    /** 联系人性别*/
    private Integer gender;
    /** 联系人年龄*/
    private Integer age;
    /** 联系人电话*/
    private String phone;
    /** 联系人职位id*/
    private Long position;
    /** 联系人职位状态*/
    private Integer positionState =1;
    /** 联系人部门id*/
    private Long department;
    /** 录入人id*/
    private Long inputUser;
    /** 录入时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date inputTime;
    /** 录入人*/
    private User user;
    /** 部门*/
    private Dept dept;
    /** 职位*/
    private Post post;
    /** 客户*/
    private Customer customer;
}